package com.jeesite.modules.isys.keys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author XYMTOP
 * @since 2023-11-12
 */
@TableName("keys_history_unaccount")
@Data
@ApiModel(value = "HistoryUnaccount对象", description = "")
@NoArgsConstructor
public class HistoryUnaccount implements Serializable {

    private static final long serialVersionUID = 1L;

    public HistoryUnaccount(String labId, String borrowPerson, String contactWay, LocalDateTime borrowTime, LocalDateTime preReturnTime, String borrowReason, String remark) {
        this.labId = labId;
        this.borrowPerson = borrowPerson;
        this.contactWay = contactWay;
        this.borrowTime = borrowTime;
        this.preReturnTime = preReturnTime;
        this.borrowReason = borrowReason;
        this.remark = remark;
    }

    @ApiModelProperty("id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("实验室id")
    private String labId;

    @ApiModelProperty("借出人员姓名")
    private String borrowPerson;

    @ApiModelProperty("联系方式")
    private String contactWay;

    @ApiModelProperty("借出时间")
    private LocalDateTime borrowTime;

    @ApiModelProperty("预计归还时间")
    private LocalDateTime preReturnTime;

    @ApiModelProperty("实际归还时间")
    private LocalDateTime returnTime;

    @ApiModelProperty("借出理由")
    private String borrowReason;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态")
    private Integer unAccStatus;

    @ApiModelProperty("逻辑删除：0-正常，1-删除")
    private Integer deleted;

}
